package chaowan.Service;

import chaowan.pojo.OrderMain;

import java.util.List;

public interface OrderMainService {
    List<OrderMain> getAllOrders();
    OrderMain getOrderById(Long oid);
    int save(OrderMain orderMain);
    int update(OrderMain orderMain);
    int deleteById(Long oid);
    List<OrderMain> getOrdersByUserId(Long uid);
    boolean checkoutOrder(Long userId, List<Long> cartIds);
}